package service

import javax.inject._
import play.api.cache.AsyncCacheApi
import scala.concurrent.ExecutionContext.Implicits.global

/**
 * This trait demonstrates how to create a component that is injected
 * into a controller. The trait represents a counter that returns a
 * incremented number each time it is called.
 */

@Singleton
class MyCache @Inject()(junctionService: JunctionService, cache: AsyncCacheApi) {

//  junctionService.getAllChr.flatMap { x =>
//    cache.set("chrs", x)
//  }


}
